﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace syc.Admin
{
    public partial class 分厂身份模拟 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button_Save_Click(object sender, EventArgs e)
        {
            Session["OperatorDID"] = int.Parse(this.FenChang.Text);
            Session["OperatorDCode"] = this.BuMen.Text;

            string qx1 = ",";
            string qx2 = ",";
            if (this.ChanPin1.Checked) qx1 += "1,";
            if (this.ChanPin2.Checked) qx1 += "2,";

            if (this.YuanLiao1.Checked) qx2 += "1,";
            if (this.YuanLiao2.Checked) qx2 += "2,";
            if (this.YuanLiao3.Checked) qx2 += "3,";
            if (this.YuanLiao4.Checked) qx2 += "4,";
            if (this.YuanLiao5.Checked) qx2 += "5,";
            if (this.YuanLiao6.Checked) qx2 += "6,";

            if (this.YuanLiao101.Checked) qx2 += "101,";
            if (this.YuanLiao102.Checked) qx2 += "102,";
            if (this.YuanLiao103.Checked) qx2 += "103,";
            if (this.YuanLiao104.Checked) qx2 += "104,";
            if (this.YuanLiao105.Checked) qx2 += "105,";
            if (this.YuanLiao106.Checked) qx2 += "106,";

            Session["OPP2"] = qx1;
            Session["OPP3"] = qx2;

            this.Message.Text = "·用户权限模拟成功";
        }
    }
}
